<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2017/4/25
 * Time: 17:44
 */
namespace app\validate;
class GroupValidate{
    protected $rule = [
        'title' => 'require|unique:auth_group',
        'rules' => 'require'
    ];
    protected $message = [
        'title.require' => '角色名不能为空',
        'title.unique'  => '角色名必须唯一',
        'rules.require' => '没有选择权限'
    ];
    public function groupValidate(){
        $validate['rule']    = $this->rule;
        $validate['message'] = $this->message;
        return $validate;
    }
}